﻿@using DIS.Infrastructure.Entities.Entity;
@using DIS.Infrastructure.Entities.Enum;
@{
    ViewBag.Title = "项目明细";
    Layout = "~/Views/Shared/_Layout.cshtml";

    Project project = ViewBag.project;
}

<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
        <tr>
            <td height="19" background="/content/img/tbg.gif" bgcolor="#E7E7E7">
                <table width="96%" border="0" cellspacing="1" cellpadding="1">
                    <tr>
                        <td style="padding-left: 10px;">
                            <b><strong>项目明细</strong></b>
                        </td>
                        <td align="right">
                            <b><strong><a href="/systemset/Projects">项目列表</a></strong></b>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF">
                <form name="saveuserForm" action="/systemset/SaveProject" method="post">
               
                @{
                    if (project != null)
                    {
                         <input type="hidden" name="Id" id="id" value="@project.Id" />
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>项目编号：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="projectCode" type="text" id="projectCode"  value="@project.ProjectCode" style="width: 300px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>项目名称：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="projectName" type="text" id="projectName"  value="@project.ProjectName"  style="width: 300px"/>
                        </td>
                    </tr> 
                    <tr> 
            <td height="60">&nbsp;</td>
            <td align="left">
            	<input type="submit" name="submit" value="保存" class="coolbg np" />
            </td>
          </tr>
                </table>
                    }
                    else
                    {
                         <input type="hidden" name="Id" id="id" value="0" />
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>项目编号：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="projectCode" type="text" id="projectCode"  value="" style="width: 300px"/>
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>项目名称：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="projectName" type="text" id="projectName" value=""  style="width: 300px"/>
                        </td>
                    </tr> 
                     
                    <tr> 
            <td height="60">&nbsp;</td>
            <td align="left">
            	<input type="submit" name="submit" value="保存" class="coolbg np" />
            </td>
          </tr>
                </table>
                    }
                }
                
                </form>
            </td>
        </tr>
    </table>
